<script src="<{$config.weburl}>/script/prototype.js" type=text/javascript></script>
<script type="text/javascript" src="script/Validator.js"></script>
<script type="text/javascript">
function getHTML(v)
{	
	var ob="city";
	var url = '<{$config.weburl}>/ajax_back_end.php';
	var sj = new Date();
	var pars = 'shuiji=' + sj+'&prov_id='+v;
	var myAjax = new Ajax.Request(
				url,
				{method: 'post', parameters: pars, onComplete: showResponse}
				);
	function showResponse(originalRequest)
	{
		var tempStr = 'var MyMe = ' + originalRequest.responseText; 
		var i=0;var j=0;
		eval(tempStr);
		for(var s in MyMe)
		{
			++j;
		}
		$(ob).options.length =j+1;
		for(var k in MyMe)
		{
			var cityId=MyMe[k][0];
			var ciytName=MyMe[k][1];
			$(ob).options[k].value = cityId;
			$(ob).options[k].text = ciytName;
			if(city!=''&&city==ciytName)
				$(ob).options[k].selected = true;
	　	}
	 }
　}
<{if $smarty.get.t==1}>
	window.parent.ref();
<{/if}>
</script><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
}
-->
</style>
	<{$slogin}>
	<link href="<{$config.weburl}>/templates/default/admin.css" rel="stylesheet" type="text/css" />
	<table border="0" cellpadding="7" cellspacing="1" bgcolor="#DDDDDD" style="margin-top:0px;" class="admin_table">
	 <form action="" method="post" enctype="multipart/form-data" onSubmit="return Validator.Validate(this,3)"><tr> 
		<td width='20%' height="20" align="left" bgcolor="#EAEFF3"><{$lang.userid}>* </td>
	    <td width='85%' height="20" bgcolor="#FFFFFF" style="font-weight:normal">
		<{if $smarty.get.editid}>
			<{$de.user}>
		<{else}>
			<input name='user' type='text' id="user" value="<{$de.user}>" dataType="Require" msg="<{$lang.ar_userid}>" style="width:250px;">
		<{/if}>
		</td>
	 </tr>
	   <tr>
	     <td height="20" align="left" bgcolor="#EAEFF3"><{$lang.pass}>* </td>
	     <td height="20" bgcolor="#FFFFFF">
		 <{if $smarty.get.editid==''}>
		 	<input style="width:250px;" dataType="Require" msg="<{$lang.ar_pass}>" type="password" name="pass" />
		 <{else}>
		 	<input style="width:250px;" type="password" name="pass" />
			如无需修改密码请留空
		 <{/if}>
		 </td>
       </tr>
	   <tr> 
		<td width='20%' height="20" align="left" bgcolor="#EAEFF3"><{$lang.fullname}>* </td>
	   <td width='85%' height="20" bgcolor="#FFFFFF">
	   <input name='name' type='text' id="name" value="<{$de.name}>" dataType="Require" msg="<{$lang.ar_con_user}>" style="width:250px;">	</td>
	 </tr>
	 	 <tr> 
		<td width='20%' height="20" align="left" bgcolor="#EAEFF3"><{$lang.position}>* </td>
	   <td width='85%' height="20" bgcolor="#FFFFFF"> <input name='position' type='text' id="position" value="<{$de.position}>" dataType="Require" msg="<{$lang.ar_position}>" style="width:250px;">	</td>
	 </tr>
	  <tr>
		<td height="20" align="left" bgcolor="#EAEFF3"><{$lang.xingbie}>*</td>
		<td height="20" bgcolor="#FFFFFF" style="font-weight:normal">
            <input name="sex" type="radio"  value="1" style="width:20px;border:none;"  <{if $de.sex==1}>checked="checked"<{/if}>/>
            <{$lang.boy}>
            <input name="sex" type="radio"  value="2" style="width:20px;border:none;"  <{if $de.sex==2}>checked="checked"<{/if}>/>
            <{$lang.gilr}>        </td>
	  </tr>
	  <tr> 
		<td width='20%' height="20" align="left" bgcolor="#EAEFF3">Email* </td>
		<td width='85%' height="20" bgcolor="#FFFFFF">
		<input name='email' type='text' value="<{$de.email}>" dataType="Require" msg="<{$lang.ar_email}>" style="width:250px;"></td>
	  </tr>
	  <tr> 
		<td width='20%' height="20" align="left" bgcolor="#EAEFF3"><{$lang.tel}>* </td>
		<td width='85%' height="20" bgcolor="#FFFFFF"><input name='tel' type='text' value="<{$de.tel}>" dataType="Require" msg="<{$lang.ar_tel}>" style="width:250px;"></td>
	  </tr>
	  <tr>
	    <td height="20" align="left" bgcolor="#EAEFF3"><{$lang.mobile}></td>
	    <td height="20" bgcolor="#FFFFFF"><input name="mobile" type="text" id="mobile" value="<{$de.mobile}>" style="width:250px;"></td>
       </tr>
	  <tr>
		<td height="20" align="left" bgcolor="#EAEFF3">Q Q</td>
		<td height="20" bgcolor="#FFFFFF" style="font-weight:normal"><input name="qq" type="text" value="<{$de.qq}>" maxlength="10" style="width:250px;"></td>
	  </tr>
	  <tr>
		<td width='20%' height="20" align="left" bgcolor="#EAEFF3">MSN</td>
		<td height="20" bgcolor="#FFFFFF"><input name="msn" type="text" value="<{$de.msn}>" maxlength="30" style="width:250px;"></td>
	  </tr>  
	  <tr>
		<td height="24" align="left" bgcolor="#EAEFF3">skype</td>
		<td bgcolor="#FFFFFF"><input name="skype" type="text" value="<{$de.skype}>"  style="width:250px;"></td>
	  </tr>

	  <tr> 
		<td width="20%" height="24" align="left" bgcolor="#EAEFF3"><{$lang.province}>/<{$lang.city}>* </td>
		<td bgcolor="#FFFFFF" width="85%">
		   <{if $de.country=='china' or $de.country=='China' or $de.country=='中国'}>
				<select  name="province" id="province" onChange="getHTML(this.value)" style="width:123px;" />
				<option value=""><{$lang.ar_province}></option>
				<{$prov}>
				</select>
				<select name="city" id="city" style="width:123px;" />
				<option value=""><{$lang.ar_city}></option>
				</select>
		   <{else}>
				<input style="width:122px;" id="province1" name="province1" type="text" value="<{$de.province}>"/>
				<input style="width:122px;" id="city1" name="city1" type="text" value="<{$de.city}>"/>
			<{/if}>
			</td>
	  </tr>
  <tr> 
	<td width='20%' height="24" align="right" bgcolor="#EAEFF3"> </td>
	<td width='85%' bgcolor="#FFFFFF">
	  <input type='submit' name='Submit' value='<{$lang.submit}>' style="width:100px;">
	  <input name="uid" type="hidden" id="action" value="<{$smarty.get.editid}>" />
	  <{if $smarty.get.editid}>
	  	<input name="action" type="hidden" id="action" value="update" />
	  <{else}>
	  	<input name="action" type="hidden" id="action" value="submit" />
	  <{/if}>
	  </td>
  </tr>
  </form>
</table>